package com.xgd.phylw.mapper;

import com.xgd.phylw.bean.Movie;
import com.xgd.phylw.bean.MovieExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface MovieMapper {
    long countByExample(MovieExample example);

    Movie countByMovie();//根据类型分组，MovieId 暂用 conut条数

    int deleteByExample(MovieExample example);

    int deleteByPrimaryKey(Integer movieId);

    int deleteByName(@Param("name")String[] name);

    int insert(Movie record);

    int insertSelective(Movie record);

    List<Movie> selectAllMovieAndTemp(@Param("movie") Movie movie);

    List<Movie> selectByExample(MovieExample example);

    List<Movie> selectAllMovie();

    List<Movie> LikeMovie(String like);

    List<Movie> LikeMovieTemp(String like);

    List<Movie> MovieNotMovieTemp();

    Movie selectByPrimaryKey(Integer movieId);

    int updateByExampleSelective(@Param("record") Movie record, @Param("example") MovieExample example);

    int updateByExample(@Param("record") Movie record, @Param("example") MovieExample example);

    int updateByPrimaryKeySelective(Movie record);

    int updateByPrimaryKey(Movie record);
}